#%RAML 1.0


# --------------------------------------------------
# Useful links:
# - [RAML 1.0 Language Spec](https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md)
# - [Atom Plugin: API Workbench](https://atom.io/packages/api-workbench)
# --------------------------------------------------

title: 答
version: v1

# Will prefixes all resource paths
baseUri: /answer

uses:
  baseTraits: traits/index.raml
  annotations: annotations/index.raml
  
            
/list:
  get:
    description: 获取答题列表
    queryParameters:
      keyValue:
        description: 搜索关键字
        type: string
        required: false
      pageSize:
        description: 每页条数
        type: string
        required: true
      pageNow:
        description: 当前页
        type: string
        required: true
    responses:
      200:
        body:
          application/json:
            example: !include examples/answer/list.json
            
/question/get:
  get:
    description: 获取问题详情
    queryParameters:
      code:
        description: 问题code
        type: string
        required: true
    responses:
      200:
        body:
          application/json:
            example: !include examples/answer/question-get.json
            
/comment-list:
  get:
    description: 获取评论列表
    queryParameters:
      code:
        description: 问题code
        type: string
        required: true
    responses:
      200:
        body:
          application/json:
            example: !include examples/answer/comment-list.json